<extend name="Index:index" />
<block name="nav1">
  	<ul class="breadcrumb">
        <li>
            <i class="icon-home home-icon"></i>
            <a href="#">Admin</a>
        </li>
        <li class="active">用户信息管理</li>
   	</ul><!-- .breadcrumb -->
</block>

<block name="nav2">
    <h1>
        用户信息管理
        <small>
            <i class="icon-double-angle-right"></i>
            	用户收藏信息
        </small>
    </h1>


</block>
    
	  <block name="main">
      <!-- <div ></div> -->
        <div class="row">
        <volist name="r_list" id="vo">
        <volist name='u_list' id="v">
        <ul class="r_fl">
            <div class="r_div">
            <li>
            <!-- <{$v.id}> -->
                <?php if(empty($v['t_img'])): ?>
                    <img src="__PUBLIC__/img/1.png" alt="">
                <?php else: ?>
                    <img src="__PUBLIC__/<{$v.t_img}>" alt="">
                <?php endif ?>
                    <b><{$v.user}></b>
                    <{$vo.time}>
                    <button class=" btn-danger r_but1"  onclick="del(<{$vo['id']}>,this)">删除</button><br>
                    <button class=" btn-info r_but">备注</button>
            </li>
            <div class="hr"></div>
            <li class="r_li">
                <{$vo.content}>

            </li>
            </div>
            <li class="r_del">
                
            </li>
        </ul>
        </volist>
        </volist>
        </div>




    <script src="__PUBLIC__/js/jquery-2.1.4.min.js"></script>
    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="__PUBLIC__/js/jquery.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="__PUBLIC__/js/bootstrap.min.js"></script>
    <!-- holder引用方法<img src="holder.js/250x250"> -->
    <script src="__PUBLIC__/js/holder.min.js"></script>


    <script>
     function del(id,obj){
        // console.log('sadsadsa');
            // var id = $('.r_but1').attr('id');
            // console.log(id);
             $.ajax({
                url:"<{:U('Center/del')}>",
                type: 'post',
                data:{'id':id},
                dataType:'json',
                success:function(data){
                    // console.log($(obj).parent());
                    // alert('您确定要删除吗?');
                  // $('.img img.selected').remove();
                  // console.log($(obj).parent().parent());
                  $(obj).parent().parent().remove();

                }
            })
        
       }

    </script>
    </block>


<!--     <{$v.id}>
<{$v.name}>
<if condition="$v.sex eq '0'">女<else />男</if>
<{$v.tel}>
<{$v.email}> -->